package com.ktjiaoyu.mapper;

import com.ktjiaoyu.pojo.News;
import com.ktjiaoyu.pojo.NewsAdmin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: DABINGCHNEGJIAO
 * @CreateTime: 2025-05-29
 * @Description:
 * @Version: 1.0
 */
public interface NewsMapper {

    //根据条件分页查询新闻数据
    List<News> SelectNewsByPage(@Param("title") String title, @Param("author") String author, @Param("typeId") Integer typeId);

    //根据删除新闻数据
    int deleteNewsById(Integer id);

    //根据id批量删除新闻数据
    int deleteNewsByIds(@Param("ids") List<Integer> ids);

    //新增新闻
    int insertNews(News news);

    //修改新闻
    int updateNews(News news);

}
